﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TJ_MainNameSpace
{
    public partial class Form_lable : Form
    {
        public Form_lable()
        {
            InitializeComponent();
        }
        private TongJi_EMS.MyLabel mylable;
        public Form_lable(TongJi_EMS.MyLabel id)
        {
            InitializeComponent();
            this.mylable = id;
        }
        private void Form_lable_Load(object sender, EventArgs e)
        {
            this.textBox1.Text = mylable.Text;


        }
        private void button1_Click(object sender, EventArgs e)
        {

            mylable.Text = this.textBox1.Text;


            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.textBox1.Text = "";
            this.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (this.fontDialog1.ShowDialog() == DialogResult.OK)
            {
                Font font = this.fontDialog1.Font;
                mylable.Font = font;


            }
        }


    }
}